home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / Mac wt 0.04 Folder / MacWT.fat 0.04 / Mac WT source / MacGame.h < prev    next >
Encoding:
Text File  |  1994-05-08  |  970 b   |  31 lines  |  [TEXT/MMCC]

  1. //==================================================================
  2. // MacGame.h                                        <tur 01-May-94>
  3. //
  4. //    Interface for MacWT.c
  5. //
  6. //    Comments, Bug Reports/Fixes, etc, to turly@isltd.insignia.com
  7. //
  8. //==================================================================
  9.  
  10. // This many pixels are left at the bottom of our window
  11. // for info purposes...(frames per second, etc.)
  12.  
  13. #define    kBottomBorder    34
  14.  
  15.  
  16. extern PixMap            gOffscreenPixMap;
  17. extern WindowPtr        gWTFTWindow;
  18. extern EventRecord        gTheEvent;
  19. extern Boolean            gDone, gUseQuickDraw, gPaused, gShowFPS, gGameOn;
  20. extern char                gWorldFileName[];
  21. extern Str15            gWTVersion;
  22.  
  23. extern int LoadPaletteFromFile(PaletteHandle pal, const char *palFile);
  24. extern void RefreshWTWindow(void);
  25.  
  26. enum {gotNoEvent, gotOtherEvent, gotKeyEvent};
  27.  
  28. extern int GetAndProcessEvent(void);    // returns TRUE if we had an event...
  29. extern void BeginGame(void);            // game begins...
  30. extern void TogglePause(void);            // pause/continue game
  31.